package basis.enums;

class Resource{
}

/**
 * 利用枚举类型实现单例模式
 */
public enum SingletonModel {
    INSTANCE;
    private Resource instance;
    SingletonModel() {
        instance = new Resource();
    }
    public Resource getInstance() {
        return instance;
    }
}
